package com.example.template.dao;

import com.example.template.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author BuerYouth
 */
public interface AccountRepository extends JpaRepository<Account, Integer> {
    /**
     * 使用findBy
     */
    public Account findByUseremailAndPassword(String useremail, String password);

    public List<Account> findByUsername(String username);
}
